let sp = 30
for (let i = 1; i <= 25; i += 2) {
    console.log(' '.repeat(--sp)+'*'.repeat(i))
}
for (let i = 23; i >=1; i -= 2) {
    console.log(' '.repeat(++sp)+'*'.repeat(i))
}

